package app.business;

import java.util.List;

import app.dao.UserDAO;
import app.pojo.User;


public class UserOP {
	
	UserDAO userdao = null;
	
	boolean Login(String username, String pwd)
	{
		List<User> ulist = (List<User>)userdao.findByUsername(username);
		if(ulist.get(0).equals(pwd))
			return true;
		else 
			return false;
		
	}

}
